<!--#layout("/common/layout.html",{"jsBase":"/js/customer/register/"}){ -->
<div class="layui-row" xmlns:layui="http://www.w3.org/1999/xlink">
    <form id="searchForm" class="layui-form layui-form-pane">
        <div class="layui-collapse" lay-filter="condictionCol">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">查询条件</h2>
                <div class="layui-colla-content layui-show">
                    <div class="layui-row">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">日期</label>
                                <div class="layui-input-inline">

                                        <input type="text" name="date" id="date" autocomplete="off"  class="layui-input input-date">

                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">省份</label>
                                <div class="layui-input-inline">
                                    <layui:simpleDataSelect name="provinceId"  value="" data="${provinceList}"
                                                            attrId="provId" attrName="provName" layFilter="colFilter" id="provinceId"  laySearch="true"/>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <!--# if(accessType==6){ -->
                            <div class="layui-inline">
                                <label class="layui-form-label">所属租户</label>
                                <layui:simpleDataSelect name="tenantId" data="${tenantList}"
                                                        attrId="tenantId" attrName="tenantName" laySearch="true"/>
                            </div>
                            <!--# } -->
                            <div class="layui-inline">
                                <label class="layui-form-label">报表类型</label>
                                <input type="radio" name="type" value="1" title="年报表"  checked>
                                <input type="radio" name="type" value="2" title="月报表">
                                <button style="float: right;" class="layui-btn layui-btn-normal" type="button" id="searchFormSearch">搜索</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<table id="customerInfoTable" lay-filter="customerInfoTable"></table>
<!--#} -->
<script>
    layui.use(['index','laydate'], function () {
        var index = layui.index;
        var laydate = layui.laydate;
        var date = new Date();
        var year =  date .getFullYear(); //获取完整的年份(4位)
        var month =  date .getMonth()+1; //获取当前月份(0-11,0代表1月)
        var day = date .getDate(); //获取当前日(1-31)
        var datetime = year+"-"+ month+"-"+day;
        laydate.render({
            elem: '#date'
            ,type: 'date'
            ,value: datetime
            ,max: datetime
        });
        var accessType = ${accessType};
        if(accessType!=3&&accessType!=6){
            Common.info("请授权");
            return;
        }
        index.init();
    });
</script>
